<template>
  <div class="person">
   <h2>当前求和为：{{ sum }}，放大10倍后：{{ bigSum }}</h2>
    <button @click="add">点我sum+1</button>
  </div>
</template>

<script setup lang="ts" name="Person">
    import useSum from '../../hook/useSum'
    const {sum,add,bigSum} = useSum()
</script>